package main

import (
	"fmt"
	"image/color"
)

// 继承
func main() {
	var color = new(ColorPoint)
	color.x = 10
	color.y = 10
	color.Color.A = 10
	fmt.Print(color)
}

type Point struct {
	x int
	y int
}

type ColorPoint struct {
	Point
	Color color.RGBA
}
